﻿@model IEnumerable<VaccineEbook.Models.ChapterModel.ChapterMenuModel>
@{
    Layout = null;
}

<ul class="pagination" style="margin:0px;">
    <li class="disabled">
        <span>Page </span>
    </li>
    @foreach (var item in Model)
    {
        if ((string)ViewContext.RouteData.Values["id"] == item.ID.ToString())
        {
            <li class="active">
                <a href="@Url.Action("Edit", new { id=item.ID, ChapterID=item.ChapterID })">@item.Page</a>
            </li>
        }
        else
        {
            <li>
                <a href="@Url.Action("Edit", new { id=item.ID, ChapterID=item.ChapterID })">@item.Page</a>
            </li>
        }
    }

</ul>